<!DOCTYPE html>
<html>

<head>
        <meta charset="utf-8" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <title>Node OAuth2 Demo</title>
        <meta name="viewport" content="width=device-width, initial-scale=1">
</head>

<body>
        <a id="login">Login with Gitee</a>

<script>
  // fill in your cliend_id
  // const client_id = '7d109d64fdf8f98e72de'; // github
  const client_id = 'f0d59e73bc4f39054bf4ef63f6a2f083dbdc8e068dbc4e65de61fd681e5d7a0f';    // gitee

  const authorize_uri = 'https://gitee.com/oauth/authorize';
  const redirect_uri = 'http://localhost:8080/oauth/redirect';
  const resp_type = 'code';
  const scope = '';

  const link = document.getElementById('login');
  link.href = `${authorize_uri}?client_id=${client_id}&redirect_uri=${redirect_uri}&response_type=${resp_type}&scope=${scope}`;
</script>

</body>

</html>
